package com.baizhi.service;

import com.baizhi.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 商品三级分类 服务类
 * </p>
 *
 * @author longyang
 * @since 2022-01-19
 */
public interface ICategoryService extends IService<Category> {
    //根据父类别的编号查询该类别下面所有的子类别
    List<Category> selectCategorySon(Integer categoryId);
    //添加类别
    Integer addCategory(Category category);
    //删除类别
    Integer deleteCategory(Integer categoryId);
    //根据id查询类别信息
    Category selectCategoryById(Integer categoryId);
    //修改类别
    Integer updateCategory(Category category);
    //查询整个类别树
    List<Category> selectCategoryTree();
}
